package com.securitytrace.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 *防伪码实体类
 */
@Entity
@Table(name="antifake_code")
public class AntiFakeCode implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5824023750601322625L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	private String code;
	private boolean apply;
	private long validateCount;
	private String otherInfo;
	
	@Column(columnDefinition="blob")
	private byte[] graphics; //分形图形
	
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setValidateCount(long validateCount) {
		this.validateCount = validateCount;
	}
	public long getValidateCount() {
		return validateCount;
	}
	public void setApply(boolean apply) {
		this.apply = apply;
	}
	public boolean isApply() {
		return apply;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getCode() {
		return code;
	}
	public void setGraphics(byte[] graphics) {
		this.graphics = graphics;
	}
	public byte[] getGraphics() {
		return graphics;
	}
	public void setOtherInfo(String otherInfo) {
		this.otherInfo = otherInfo;
	}
	public String getOtherInfo() {
		return otherInfo;
	}
}
